public class Main{
    public static void main(String[] args){
        String words = "你怎么这么菜啊,TMD,NM";
        String[] arr = {"TMD","NM","GUN"};
        for(int i = 0;i < arr.length;i++){
            words = words.replace(arr[i],"***");
        }
        System.out.println(words);
    }
}